import request from '@/utils/request';

const experimentApi = {};

experimentApi.page = (params) => {
	return request({
		url: '/platform-api/experiment/page',
		method: 'get',
		params: params,
	})
}
experimentApi.add = (params) => {
	return request({
		url: '/platform-api/experiment',
		method: 'post',
		data: params,
	})
}
experimentApi.update = (params) => {
	return request({
		url: '/platform-api/experiment',
		method: 'put',
		data: params,
	})
}
experimentApi.get = (id) => {
	return request({
		url: '/platform-api/experiment/' + id,
		method: 'get',
	})
}
experimentApi.delete = (id) => {
	return request({
		url: '/platform-api/experiment/' + id,
		method: 'delete',
	})
}


export default experimentApi